package com.hqd.ch03.v50.factory;

/**
 * 层级结构的BeanFactory
 */
public interface HierarchicalBeanFactory extends BeanFactory {
    /**
     * 获取父容器
     *
     * @return
     */
    default BeanFactory getParentBeanFactory() {
        return null;
    }

    /**
     * 当前容器是否包含bean
     *
     * @param name
     * @return
     */
    default boolean containsLocalBean(String name) {
        return true;
    }

}
